SuppliedTextWidget
class SuppliedTextWidget(messageSupplier: Supplier<Text>, textRenderer: TextRenderer, width: Int, height: Int) : AbstractTextWidget
An AbstractTextWidget that renders text from a supplier of text, not a static text instance
Author
fzzyhmstrs
Since
0.3.1
Parameters
messageSupplier
Supplier<Text> - supplies text to this widget
textRenderer
TextRenderer - textRenderer instance
width
Int - width of the widget in pixels
height
Int - height of the widget in pixels
Functions
Link copied to clipboard
Aligns the widget text to the center
Link copied to clipboard
Aligns the widget text to the left
Link copied to clipboard
Aligns the widget text to the right
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
supplies a text for tooltips if the text overflows the width of the widget.